package com.gitee.wsl.mathematics.geometry.d2.line

import com.gitee.wsl.mathematics.number.compareTo

/**
 * Edge distance pack class implementation used to describe the distance to a
 * given edge.
 *
 * @author Johannes Diemke
 */
class EdgeDistancePack<N:Number,L:LineShape2d<N,*>>(var edge: L, var distance: N) : Comparable<EdgeDistancePack<N,L>> {
    override fun compareTo(other: EdgeDistancePack<N,L>): Int {
        return distance.compareTo(other.distance)
    }
}